
$("#login_btn").click(function() {
	var username = $("#username").val();
	var pwd = $("#password").val();
       
	if(username == "") {
		alert("请输入用户名");
		return false;
	} else if(password == "") {
		alert("请输入密码");
		return false;
	}
	var info = {
		username: username,
		pwd: pwd
	};
    window.location.href = "index.html";
	// doPost("system/login",info,function(data){
    //
	// 	if(data.success){
	// 		if(data.data.role.type == 1 || data.data.role.type == 0) {
	// 			window.location.href = "index.html?userid=" + data.data.userId +"&roleid=" + data.data.role.id;
	// 		} else if(data.data.role.type == 2){
	// 			Cookies.set("shopid",'');
     //         Cookies.set("shopid",data.data.shop);
	// 			window.location.href = "shop_index.html?userid=" + data.data.userId +"&shop=" + data.data.shop;
	// 		}else{
	// 			alert("登录失败，权限不足！");
	// 		}
	// 	}else{
	// 		alert(data.desc);
	// 	}
	// });
});
